#include <bits/stdc++.h>
using namespace std;
int F(int n){
    if(n == 0) return 1;
    else return F(n - 1) * n;
}

int main(){
    int rel = 1;
    int n = 3;
    rel = F(n);
    cout << rel;
    return 0;
}